<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<s:head theme="ajax"/>

</head>
<body>
<font style="font-family: 돋움" size=2>
<center>
	<h1><b>받은 보고서 목록</b></h1>
		
	<table border=0 cellpadding="0" cellspacing="0" width=700 height=480>
	<tr height="11">
	<td align="left" colspan=4>보고서 상태
	&nbsp;
	<select name=type style="background-color: rgb(244,251,254);" onchange="change_get()" id="getselect">
		<option>&nbsp;전체&nbsp;</option>
		<option value="1">&nbsp;승인대기&nbsp;</option>
		<option value="2">&nbsp;1차승인&nbsp;</option>
		<option value="3">&nbsp;승인완료&nbsp;</option>
	</select>
	</td>
	</tr>
		<tr><td colspan=4 bgcolor="rgb(91,140,217)" height=2></td></tr>
		
		<tr align="center" height="20">
			<td width=70>상태</td>
			<td width=400>제목</td>
			<td width=100>보낸이</td>
			<td width=200>수신일</td>
		</tr>
		<tr><td colspan=4 bgcolor="rgb(91,140,217)" height=2></td></tr>
		<s:iterator value="list">
		<s:if test="type==2">
		<tr height=10 onmouseover="this.style.backgroundColor='#eaf0fa'"  onmouseout="this.style.backgroundColor=''"> 
		
			<td>
			<s:if test="type==0"><font color="red">승인실패</font></s:if>
			<s:if test="type==1"><font color="green">승인대기</font></s:if>
			<s:if test="type==2"><font color="orange">1차&nbsp;승인</font></s:if>
			<s:if test="type==3"><font color="blue">승인완료</font></s:if>
			
			</td>
			<td align=left height=10><s:a href="/ssteam/workreport/content.do?no=%{#request['no']}" theme="ajax" targets="incenter">${subject }</s:a></td>
			<td>${name }</td>
			<td><s:date name="writeday" format="MM월 dd일 : hh시 mm분 ss초"/></td>
		</tr>
		<tr><td colspan=4 height=1 bgcolor=#dadada></td></tr>
		</s:if>
	</s:iterator>
	<tr>
		<td colspan=4>
		<hr width=100%>
		</td>
	</tr>
	    <!--<s:textfield value="%{#session.user.sabun}"></s:textfield>-->
      <!--    <input type="text" value="${session.user.sabun}"> -->
	</table>
	
	</center>
	</font>
</body>
</html>